package com.xiaoy.core.base.security.role.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springside.modules.orm.Page;

import com.xiaoy.core.base.security.role.dao.RoleDao;
import com.xiaoy.core.base.security.role.entity.Role;

@Service
public class RoleService {

	@Resource
	private RoleDao roleDao;
	
	public Page<Role>filterPage(Page<Role>page){
		roleDao.findPage(page, page.getFilters());
		return page;
	}
	
	@Transactional
	public void save(Role role) {
		roleDao.save(role);
	}
	
	
}
